@import url(~@/styles/mixin.less);
@import url(~@/styles/var.less);

.message {
    // 自我居中
    .self-center();
    z-index: 999;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px 30px;
    line-height: 2;
    display: flex;
    column-gap: 10px;
    align-items: center;
    color: #fff;
    transition: all .5s;
    transform: translate(-50%, -50%) translateY(15px);
    opacity: 0;
    white-space: nowrap;


    &-info {
        background: @primary;
    }

    &-success {
        background: @success;
    }

    &-warn {
        background: @warn;
    }

    &-error {
        background: @danger;
    }
}

.icon {
    font-size: 26px;
}